package innerclassAndLambda;

/**
 * @author feng
 * @Date 2021/7/19 8:00
 */
public class LambdaTest01 {
    //静态内部类
    static class Person implements a{
        @Override
        public void dosome() {
            System.out.println("你好帅1");
        }
    }


    public static void main(String[] args) {
         //  调用接口-->匿名内部类
         a person = new a() {
             @Override
             public void dosome() {
                 System.out.println("你好帅2");
             }
         };
         person.dosome();

        // 局部内部类
        class Person implements a{
            @Override
            public void dosome() {
                System.out.println("你好帅2");
            }
        }



    }


}

interface a{
   void dosome();
}

